<?php
include_once BASEURL.'web/components/html/constants.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php
        include_once BASEURL.'web/components/html/metaheader.php';
        ?>
    </head>
    <body>
        <div class="container_16">
            <div class="grid_16">
                <h1 id="branding">PLEO</h1>
            </div>

            <div class="grid_16">
                <?php
                include_once BASEURL.'web/components/menu.php';
                ?>
            </div>
            <div class="clear"><!-- --></div>
            <?php

            /*
             * Root layout swicher
             *
             */
            switch ($_REQUEST['request']['object']) {
                case 'gallery':
                    include_once BASEURL.'web/gallery/layout.php';
                    break;
                case 'user':
                    include_once BASEURL.'web/user/layout.php';
                    break;
                case 'photo':
                    include_once BASEURL.'web/photo/layout.php';
                    break;
                case 'info':
                    include_once BASEURL.'web/info/layout.php';
                    break;
                default:
                    include_once BASEURL.'web/info/layout.php';
                    break;
            }
            ?>
            <div id="site_info" class="grid_16">
                <?php
                include_once BASEURL.'web/components/footer.php';
                ?>
            </div>
            <div class="clearfix"><!-- --></div>
        </div>
    </body>
</html>
